package com.gun3y.entity.media;

import org.apache.commons.lang3.StringUtils;

public class Data {

    private String text;

    private String from;

    public Data() {
	super();
    }

    public Data(String text, String from) {
	super();
	this.text = text;
	this.from = from;
    }

    public String getFrom() {
	return from;
    }

    public void setFrom(String from) {
	this.from = from;
    }

    public String getText() {
	return text;
    }

    public void setText(String text) {
	this.text = text;
    }

    public boolean validate() {
	return StringUtils.isNotBlank(this.text) && StringUtils.isNotBlank(this.from);
    }

    @Override
    public String toString() {
	return this.text + "@" + this.from;
    }

}
